package com.asen.commons.core.meta.dao;

import com.asen.commons.core.meta.enums.AggrFuncEnum;

import java.io.Serializable;

/**
 * 聚合函数项
 *
 * @author ls
 * @version 1.0
 * @date 2024-04-09
 */
public class AggrFuncItem implements Serializable {

    private static final long serialVersionUID = 1535466721577517634L;

    private String fieldName;

    private AggrFuncEnum symbol;

    private String alias;

    public AggrFuncItem(){}

    public AggrFuncItem(String fieldName, AggrFuncEnum symbol, String alias) {
        this.fieldName = fieldName;
        this.symbol = symbol;
        this.alias = alias;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public AggrFuncEnum getSymbol() {
        return symbol;
    }

    public void setSymbol(AggrFuncEnum symbol) {
        this.symbol = symbol;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    @Override
    public String toString() {
        return "AggrFuncItem{" +
                "fieldName='" + fieldName + '\'' +
                ", symbol=" + symbol +
                ", alias='" + alias + '\'' +
                '}';
    }
}
